// 视频流类型
export const VIDEOTYPE = {
  RTSP: 1,
  ONVIF: 2,
  GB: 3,
};
export const VIDEOTYPE_NAME = {
  [VIDEOTYPE.RTSP]: 'rtsp',
  [VIDEOTYPE.ONVIF]: 'rtmp',
  [VIDEOTYPE.GB]: 'hls',
};
export const VIDEOTYPE_BG_COLOR = {
  [VIDEOTYPE.RTSP]: '#68D391',
  [VIDEOTYPE.ONVIF]: '#0F64FF',
  [VIDEOTYPE.GB]: '#FAA97D',
};
export const VIDEOTYPE_OPTIONS = [
  { label: VIDEOTYPE_NAME[VIDEOTYPE.RTSP], value: VIDEOTYPE.RTSP },
  { label: VIDEOTYPE_NAME[VIDEOTYPE.ONVIF], value: VIDEOTYPE.ONVIF },
  { label: VIDEOTYPE_NAME[VIDEOTYPE.GB], value: VIDEOTYPE.GB },
];

// 传输协议transportProtocol
export const TRANSPORT_PROTOCAL = {
  TCP: 1,
  UDP: 2,
};
export const TRANSPORT_PROTOCAL_NAME = {
  [TRANSPORT_PROTOCAL.TCP]: 'tcp',
  [TRANSPORT_PROTOCAL.UDP]: 'udp',
};
export const TRANSPORT_PROTOCAL_OPTIONS = [
  { label: TRANSPORT_PROTOCAL_NAME[TRANSPORT_PROTOCAL.TCP], value: TRANSPORT_PROTOCAL.TCP },
  { label: TRANSPORT_PROTOCAL_NAME[TRANSPORT_PROTOCAL.UDP], value: TRANSPORT_PROTOCAL.UDP },
];

// 设备类型equipmentType
export const EQUIPMENT_TYPE = {
  CAMERA: 1,
  FLAT: 2,
  BOARD: 3,
  BOX: 4,
};
export const EQUIPMENT_TYPE_NAME = {
  [EQUIPMENT_TYPE.CAMERA]: 'AI摄像机',
  [EQUIPMENT_TYPE.FLAT]: '人脸识别平板',
  [EQUIPMENT_TYPE.BOARD]: '开发板',
  [EQUIPMENT_TYPE.BOX]: 'AI边缘计算盒',
};
export const EQUIPMENT_TYPE_OPTIONS = [
  { label: EQUIPMENT_TYPE_NAME[EQUIPMENT_TYPE.CAMERA], value: EQUIPMENT_TYPE.CAMERA },
  { label: EQUIPMENT_TYPE_NAME[EQUIPMENT_TYPE.FLAT], value: EQUIPMENT_TYPE.FLAT },
  { label: EQUIPMENT_TYPE_NAME[EQUIPMENT_TYPE.BOARD], value: EQUIPMENT_TYPE.BOARD },
  { label: EQUIPMENT_TYPE_NAME[EQUIPMENT_TYPE.BOX], value: EQUIPMENT_TYPE.BOX },
];

// 开启关闭
export const OPEN_CLOSE = {
  CLOSE: 1,
  OPEN: 2,
};

export const OPEN_CLOSE_NAME = {
  [OPEN_CLOSE.CLOSE]: '已关闭',
  [OPEN_CLOSE.OPEN]: '已开启',
};

// 是否授权authorization
export const AUTHORZATION = {
  NO: 1,
  YES: 2
}
export const AUTHORZATION_NAME = {
  [AUTHORZATION.NO]: '未授权',
  [AUTHORZATION.YES]: '已授权'
}
export const AUTHORZATION_COLOR = {
  [AUTHORZATION.NO]: '#E95A6F',
  [AUTHORZATION.YES]: '#4AC99B'
}

// 网卡类型
export const NETWORKCARD = {
  PHYSICAL: 1,
  FICTITIOUS: 2
}
export const NETWORKCARD_NAME = {
  [NETWORKCARD.PHYSICAL]: '物理网卡',
  [NETWORKCARD.FICTITIOUS]: '虚拟网卡',
}
export const NETWORKCARD_BG_COLOR = {
  [NETWORKCARD.PHYSICAL]: '#0F64FF',
  [NETWORKCARD.FICTITIOUS]: '#4AC99B',
}

// 物理网卡连接状态
export const PHYSICAL_CONNECT = {
  DYNAMIC: 1,
  STATIC: 2,
}
export const PHYSICAL_CONNECT_NAME = {
  [PHYSICAL_CONNECT.DYNAMIC]: '动态连接',
  [PHYSICAL_CONNECT.STATIC]: '静态链接',
}
